package com.infowarelab.compare

def filterLongerThan(strings, length) {
	return strings.findAll{ it.size() <= length }
}


names = ["Ted", "Fred", "Jed", "Ned"]
println(names)
shortNames = filterLongerThan(names, 3)
println(shortNames.size())
for (String s in shortNames) {
	println(s)
}